package com.cooper.mediadb;

public class Mark {

	private static final String CREATE_SQL = "CREATE TABLE MEDIA_MARK" + "("
			+ "	MOVIE_ID TEXT NOT NULL UNIQUE PRIMARY KEY ,"
			+ "	TYPE INTEGER NOT NULL,"
			+ "	COMPLETED INTEGER , LAST_URI TEXT, LAST_POSITION INTEGER"
			+ ");";
	

	public static String getCreateSql() {
		return CREATE_SQL;
	}

	private int type;
	private String mediaId;
	private String uri;
	private int position;

	public Mark(String mediaId, int type, String uri, int position) {
		super();
		this.type = type;
		this.mediaId = mediaId;
		this.uri = uri;
		this.position = position;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getMediaId() {
		return mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public interface MarkDao {

		public abstract Mark getMark(String mediaId);

		public abstract void insertMark(final String mediaId, final int type,
				final String uri, final int position);
	}

}
